/**
 * Created by waterworld on 17-7-22.
 */
/**
 * Created by waterworld on 17-4-8.
 * 离线是否自动托管 做成配置 1 自动托管，离线后自动打牌 0 离线后一直等待，等待离线人员上线继续游戏或者解散
 */
var  iconst={
    serverVersion:'v1012',
    gameHistoryName:'game_history',
    friendMap:"friendMap",
    maxRoom:1000,
    maxPlayer:9,
    web_url:'http://g9527.com:3011',
    loginByHistory:1,
    inOtherGame:2,
    keepAliveTime:20,
    playType:
    {   zhuang_10dban:1,
        lun_zhuang:2,
    },
    d89:{
        GudingZhuangjia:0,
        Qiangzhuang:1,
        FangzhuFufei:0,
        Pingtan:1,
        gameTypeQiangzhuang:0,
        gameTypeTongbi:1,
        gameTypeGudingZhuangjia:2,
        fanbei:0,
        bufanbei:1,
    },
    chatType:
    {   voice:'voice',
        text:'text',
        emoji:'emoji',
    },
    yaoPaiStatus:
    {   none:1,
        baoPai:2,
        buYao:3,
        full:4,
    },
    userStatus:
    {
        onIdle:0,
        creating:1,
        entering:2,
        login:3,
    },
    event:{
        login:'login',
        updateTable:'updateTable',
        createRoom:'createRoom',
        enterRoom:'enterRoom',
        exit:'exit',
        gameResult:'gameResult',
        finalResult:'finalResult',
        releaseRoom:'releaseRoom',
        agreeRelease:'agreeRelease',
        addBet:'addBet',
        yaoPai:'yaoPai',
        ready2Start:'ready2Start',
        buYao:'buYao',
        stateChange:'stateChange',
        query:'query',
        error:'error',
        startGame:'startGame',
        privateInfo:'privateInfo',
        exitGame:'exitGame',
        userTalk:'userTalk',
        keepAlive:'keepAlive',
        qiangzhuang:'qiangzhuang',//抢庄
        tanpai:'tanpai',
        cuopai:'cuopai',
    },
    timeout:{
      onIdle:2,
      waitPlayerOpt:10,
      waitGameReady:10,
      waitPlayerAddBet:10,
      waitReleaseDlg:90,
      fastOptTime:0.3,
      keepAliveTime:4,
      gameOverReleaseRoom:90,
      waitQiangzhuang:10,//等待抢庄
      waitBetting:10,//等待闲家下注
      waitTanPai:10,//等待摊牌
      showGameResult:2,//显示结果
      waitReady:10,//等待所有玩家准备完毕
      showFinalResult:30,
      waitShowCard:610,
    },
    //超时解散房间
    timeoutRelease:{
        onIdle:60*5,
        waitPlayerOpt:60*5,
        waitGameReady:60*5,
        waitPlayerAddBet:60*5,
        gameOverReleaseRoom:60*5,
        waitBetting:60*5,
        showGameResult:60*5,
        waitReady:60*5,
        showFinalResult:60*5,
        nobodyActive:60*2,
    },
    code:{OK:200,
        error:500},
};

module.exports=iconst;